﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace Prerequisites.Models
{
    [Table(Name="artikel")]
    public class Artikel
    {
        [Column(IsPrimaryKey=true, IsDbGenerated=true, AutoSync=AutoSync.OnInsert)]
        internal int artikel_id { get; private set; }

        [Column(Name="rubik_id")]
        public int rubik_id { get; set; }
        [Column(Name="ueberschrift")]
        public string ueberschrift { get; set; }
        [Column(Name="kurztext")]
        public string kurztext { get; set; }
        [Column(Name = "langtext")]
        public string langtext { get; set; }
        [Column(Name = "freigegeben")]
        public int freigegeben { get; set; }
        [Column(Name = "erstellt_am")]
        public DateTime erstellt_am { get; set; }
        [Column(Name = "geaendert_am")]
        public DateTime geaendert_am { get; set; }
        [Column(Name = "gueltig_bis")]
        public DateTime gueltig_bis { get; set; }
    }
}